package geometric3D;



public class VectorOperator {
	
	
	public static Vector add(Vector v1, Vector v2){
		return new Vector(v1.getX()+v2.getX(), v1.getY()+v2.getY(), v1.getZ()+v2.getZ());
		
	}
	
	public static Vector sub(Vector v1, Vector v2){
		return new Vector(v1.getX()-v2.getX(), v1.getY()-v2.getY(), v1.getZ()-v2.getZ());
		
	}
	public static Vector mult(int scalar, Vector v)
	{
		return (new Vector(scalar*v.getX(), scalar*v.getY(), scalar*v.getZ()));
	}

}
